<%--
  Created by IntelliJ IDEA.
  User: parabola
  Date: 2024/10/9
  Time: 下午3:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
%>
<html>
<head>
    <title>教师列表</title>
    <link rel="stylesheet" href="<%=path%>/css/table.css">
</head>
<body>
    <table>
        <thead>
            <tr>
                <td>教师姓名</td>
                <td>教师学科</td>
                <td>教师年龄</td>
            </tr>
        </thead>
        <tbody id="body">
        <c:forEach items="${list}" var="item">
            <tr>
                <td>${item.name}</td>
                <td>${item.subject}</td>
                <td>${item.age}</td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</body>
</html>
